<%--
  Created by IntelliJ IDEA.
  User: yp-bp-m-7046
  Date: 16/12/13
  Time: 上午11:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <link rel="stylesheet" type="text/css" href="http://cdn.datatables.net/1.10.12/css/jquery.dataTables.css">

    <!-- jQuery -->
    <script type="text/javascript" charset="utf8" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>

    <!-- DataTables -->
    <script type="text/javascript" charset="utf8" src="http://cdn.datatables.net/1.10.12/js/jquery.dataTables.js"></script>
    <title>Title</title>
</head>
<body>

</body>
<script>
    $(function(){
        $('#table_id_example').DataTable({
            serverSide: true,      //服务器操作
            "processing": true,  //加载效果
            ajax: {
                url: '/user/listAjax',
                type: 'POST'
            }
//            ajax:'/user/listAjax'
        });
    })
</script>
</html>
